package petertel.pbx.utils;

import petertel.pbx.connector.Executor;

public class ConfigParser {

	public static void main(String[] args) {
		String filename = "/etc/asterisk/logger.conf";
		parse(filename);
	}

	public static ConfigItem parse(String filename) {
		String[] lines = ParserUtils.readFile2(new Executor(), filename);
		ConfigFile cfile = new ConfigFile(lines, 0, lines.length);
		return cfile;
	}
}
